import {
    HTTP,
} from "@/plugins/axios";

// 获取
export const GetNoticeList= data => HTTP(`/admin/notice`, data, "GET");
// 根据ID搜索
export const GetNoticeById= data => HTTP(`/admin/notice/${data.search}`, data.page, "GET")
// 根据姓名搜索
export const GetNoticeByName= data => HTTP(`/admin/notice/noticeName/${data.search}`, data, "GET")
// 添加
export const AddNoticeList= data => HTTP(`/admin/notice`,data,"POST");
// 删除
export const DeleteNoticeList= data => HTTP(`/admin/delete/notice/${data}`, data, 'DELETE')
// 修改
export const UpdateNoticeList= data => HTTP(`/admin/update/notice`, data, 'PUT')
